﻿using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Data;
using SoftSource.MVVMC;
using SoftSource.Timecard.Web.Data;

namespace SoftSource.Timecard.ViewModelInterfaces
{
    public interface IUserListViewModelConsume : IDataViewModelConsume
    {
        #region Properties
        
        PagedCollectionView Users { get; }
        
        #endregion Properties

        #region Methods

        Func<int, Action, UIElement> CreateUserEditor { get; }
        Func<Action, UIElement> CreateNewUserEditor { get; }

        #endregion Methods
    }

    public interface IUserListViewModelService : IDataViewModelService
    {
        #region Properties

        IEnumerable<UserSummary> UserSummaries { get; set; }

        #endregion Properties

        #region Methods

        Func<int, Action, UIElement> CreateUserEditor { get; set; }
        Func<Action, UIElement> CreateNewUserEditor { get; set; }

        #endregion Methods
    }

    public interface IUserListViewModel :         
        IDataViewModel, 
        IUserListViewModelConsume, 
        IUserListViewModelService
    {
    }
}
